package com.photoeditor.demo.model.bean.stash;

import com.google.gson.annotations.SerializedName;

/**
 * Created by Administrator on 2017/8/30 0030.
 */

public class RecentlyGifBean implements IGifBean {

    @SerializedName("gifUrl")
    private String gifUrl;

    @SerializedName("dims")
    private int[] dims;

    public RecentlyGifBean(String gifUrl, int[] dims) {
        this.gifUrl = gifUrl;
        this.dims = dims;
    }

    public void setGifUrl(String gifUrl) {
        this.gifUrl = gifUrl;
    }

    public void setDims(int[] dims) {
        this.dims = dims;
    }

    @Override
    public String getGifUrl() {
        return gifUrl;
    }

    @Override
    public int[] getDims() {
        return dims;
    }

    @Override
    public int getType() {
        return TYPE_LOCAL;
    }

    @Override
    public boolean equals(Object obj) {
        return gifUrl.equals(((RecentlyGifBean)obj).getGifUrl());
    }

    @Override
    public int hashCode() {
        return gifUrl.hashCode();
    }
}
